package org.future.dataanalysis.bean;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author Dongwei-Chen
 * @Date 2023/12/19 10:47
 * @Description
 */
@Data
public class RecursionResult implements Serializable {

    public RecursionResult() {
        this.data = new DataUnit();
        this.allDataUnit = new ArrayList<>();
        this.finalMaps = new ArrayList<>();
    }

    public void push(String key, Object val) {
        data.put(key, val);
    }

    public void pushFinalArea(DataUnit finalMap) {
        finalMaps.add(finalMap);
    }

    private DataUnit data;

    private List<DataUnit> finalMaps;

    private List<DataUnit> allDataUnit;

}
